import Vue from 'vue'
import VueStorage from 'vue-ls'
import config from '@/config/defaultSettings'

// fullscreen
import fullscreen from 'vue-fullscreen'

// base library
import Antd from 'ant-design-vue'
import Viser from 'viser-vue'
import ViserGraph from 'viser-graph-vue'
import VueCropper from 'vue-cropper'
import 'ant-design-vue/dist/antd.less'

// ext library
import VueClipboard from 'vue-clipboard2'
import PermissionHelper from '@/utils/helper/permission'
// import '@/components/use'
import './directives/action'

import vuescroll from 'vuescroll'

// 拖拽组件
import VueDragResize from 'vue-drag-resize'
Vue.use(fullscreen)
Vue.use(vuescroll, {
  ops: {
    bar: {
      size: '4px',
      opacity: 0.2,
      background: '#c1c1c1'
    }
  } // 在这里设置全局默认配置
})
Vue.component('vue-drag-resize', VueDragResize)
// import VueDraggableResizable from '@/components/DragResize/vue-draggable-resizable'
// import '@/components/DragResize/vue-draggable-resizable.css'
// Vue.component('drag-resize', VueDraggableResizable)

VueClipboard.config.autoSetContainer = true

Vue.use(Antd)
Vue.use(Viser)
Vue.use(ViserGraph)

Vue.use(VueStorage, config.storageOptions)
Vue.use(VueClipboard)
Vue.use(PermissionHelper)
Vue.use(VueCropper)
